<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MuldeR&#39;s Utilities for Qt: include/MUtils/OSSupport.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MuldeR&#39;s Utilities for Qt
   </div>
   <div id="projectbrief">MUtilities</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_b076b53667bc06ebb413a190e197fc7b.html">MUtils</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">OSSupport.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d3/dc1/_o_s_support_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// MuldeR&#39;s Utilities for Qt</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Copyright (C) 2004-2017 LoRd_MuldeR &lt;MuldeR2@GMX.de&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// This library is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// modify it under the terms of the GNU Lesser General Public</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// License as published by the Free Software Foundation; either</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// version 2.1 of the License, or (at your option) any later version.</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// This library is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// Lesser General Public License for more details.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// You should have received a copy of the GNU Lesser General Public</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// License along with this library; if not, write to the Free Software</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// http://www.gnu.org/licenses/lgpl-2.1.txt</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">//MUtils</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="../../d5/d3b/_global_8h.html">MUtils/Global.h</a>&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">//Qt</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;QString&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;QMap&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;QDate&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;QWidget&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">//Forward declaration</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">class </span>QFile;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">namespace </span><a class="code" href="../../d3/da6/namespace_m_utils.html">MUtils</a></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html">   51</a></span>&#160;    <span class="keyword">namespace </span>OS</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    {</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html">   56</a></span>&#160;        <span class="keyword">namespace </span><a class="code" href="../../d1/d32/class_m_utils_1_1_version.html">Version</a></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        {</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00e">   61</a></span>&#160;            <span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            {</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00ea6fa12cbf650f5b33e76bbffd4fb5ec84">   63</a></span>&#160;                <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00ea6fa12cbf650f5b33e76bbffd4fb5ec84">OS_UNKNOWN</a> = 0,  </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00eae668bf9aca53081658d391823e37acf7">   64</a></span>&#160;                <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00eae668bf9aca53081658d391823e37acf7">OS_WINDOWS</a> = 1   </div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            }</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00e">os_type_t</a>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">   71</a></span>&#160;            <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">_os_version_t</a></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            {</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a4c4b496ec1964c26ebf8c138bace655a">   73</a></span>&#160;                <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a4c4b496ec1964c26ebf8c138bace655a">type</a>;          </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a50fb34ca1e0ae5ba7df5e40f93b95179">   74</a></span>&#160;                <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a50fb34ca1e0ae5ba7df5e40f93b95179">versionMajor</a>;  </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#aee8b73ff717ddaee12b4ce3577d83de6">   75</a></span>&#160;                <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#aee8b73ff717ddaee12b4ce3577d83de6">versionMinor</a>;  </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a7ac907333a00d6b4722c29c466adcc4c">   76</a></span>&#160;                <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a7ac907333a00d6b4722c29c466adcc4c">versionBuild</a>;  </div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                <span class="keywordtype">bool</span> overrideFlag;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                MUTILS_API <span class="keywordtype">bool</span> operator== (<span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">_os_version_t</a> &amp;rhs) <span class="keyword">const</span>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                MUTILS_API <span class="keywordtype">bool</span> operator!= (<span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">_os_version_t</a> &amp;rhs) <span class="keyword">const</span>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                MUTILS_API <span class="keywordtype">bool</span> operator&gt;  (<span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">_os_version_t</a> &amp;rhs) <span class="keyword">const</span>;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                MUTILS_API <span class="keywordtype">bool</span> operator&gt;= (<span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">_os_version_t</a> &amp;rhs) <span class="keyword">const</span>;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;                MUTILS_API <span class="keywordtype">bool</span> operator&lt;  (<span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">_os_version_t</a> &amp;rhs) <span class="keyword">const</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                MUTILS_API <span class="keywordtype">bool</span> operator&lt;= (<span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">_os_version_t</a> &amp;rhs) <span class="keyword">const</span>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a199c9376f9941b2ec9721eab0b544da0">os_version_t</a>;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            <span class="comment">//Known Windows NT versions</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a9d3c6f9379b28bab18428ce9ff869ce4">WINDOWS_WIN2K</a>;  </div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0469feecbf8adb7d7358c76c71ac0280">WINDOWS_WINXP</a>;  </div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a7b97ac27f03a05b0121dd617a69ae393">WINDOWS_XPX64</a>;  </div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a6547f22f54d3578977b428ed41e51a01">WINDOWS_VISTA</a>;  </div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a297a875094ba596314af1105900e3e9a">WINDOWS_WIN70</a>;  </div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#ad9c54834ffac2a4a7143ecf4d26232f7">WINDOWS_WIN80</a>;  </div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a72189512f10d40462bd055dc865771e6">WINDOWS_WIN81</a>;  </div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a2846cdee70f5aab693f7fe7ccb47d044">WINDOWS_WN100</a>;  </div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            <span class="comment">//Unknown OS</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            MUTILS_API <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">os_version_t</a> <a class="code" href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0bf24022df29669da329e21d9b3d07d7">UNKNOWN_OPSYS</a>;  </div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        }</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54">  105</a></span>&#160;        <span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        {</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54a0fb64b1e975f9ff0cc97df6e3b7f8110">  107</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54a0fb64b1e975f9ff0cc97df6e3b7f8110">FOLDER_LOCALAPPDATA</a> = 0,  </div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54abb6f5bd0b6564b2f093f5a2d1c055183">  108</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54abb6f5bd0b6564b2f093f5a2d1c055183">FOLDER_PROGRAMFILES</a> = 2,  </div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54a7c25655022efd34417acfaa11f8491b3">  109</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54a7c25655022efd34417acfaa11f8491b3">FOLDER_SYSTEMFOLDER</a> = 3,  </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54af32b4c27ec428ad2bf69d8c8802de21c">  110</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54af32b4c27ec428ad2bf69d8c8802de21c">FOLDER_SYSTROOT_DIR</a> = 4   </div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        }</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54">known_folder_t</a>;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        </div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45">  117</a></span>&#160;        <span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        {</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45af3ce4c3003fa7cc9e3b774669b8ab6e9">  119</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45af3ce4c3003fa7cc9e3b774669b8ab6e9">NETWORK_TYPE_ERR</a> = 0,  </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45ab81e893484ac0d201a9f54e2af0563dc">  120</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45ab81e893484ac0d201a9f54e2af0563dc">NETWORK_TYPE_NON</a> = 1,  </div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45a9ed5ecd6b286fa5ec2e23e652dac8769">  121</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45a9ed5ecd6b286fa5ec2e23e652dac8769">NETWORK_TYPE_YES</a> = 2   </div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        }</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45">network_type_t</a>;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        </div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480c">  128</a></span>&#160;        <span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        {</div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca56b9d51a60c9df7d4ec47e917218b153">  130</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca56b9d51a60c9df7d4ec47e917218b153">DRIVE_TYPE_ERR</a> = 0,  </div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca244c1b3fa78d134bf18cc39fb0cc0877">  131</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca244c1b3fa78d134bf18cc39fb0cc0877">DRIVE_TYPE_FDD</a> = 1,  </div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca14a1e51fa7603f7970ce94fdaf658f45">  132</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca14a1e51fa7603f7970ce94fdaf658f45">DRIVE_TYPE_HDD</a> = 2,  </div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480caf4b8f61bae5c8602e2f1e68ef88f06a2">  133</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480caf4b8f61bae5c8602e2f1e68ef88f06a2">DRIVE_TYPE_NET</a> = 3,  </div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480cab4fa63f34e252cce2176d51b36f0c827">  134</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480cab4fa63f34e252cce2176d51b36f0c827">DRIVE_TYPE_OPT</a> = 4,  </div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca42b280153a22e6af73fe7edfbbaee69b">  135</a></span>&#160;            <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca42b280153a22e6af73fe7edfbbaee69b">DRIVE_TYPE_RAM</a> = 5   </div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480c">drive_type_t</a>;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="comment">//System message</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        MUTILS_API <span class="keywordtype">void</span> system_message_nfo(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keyword">const</span> title, <span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keyword">const</span> text);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        MUTILS_API <span class="keywordtype">void</span> system_message_wrn(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keyword">const</span> title, <span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keyword">const</span> text);</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        MUTILS_API <span class="keywordtype">void</span> system_message_err(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keyword">const</span> title, <span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keyword">const</span> text);</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <span class="comment">//CLI Arguments</span></div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keyword">typedef</span> QMap&lt;QString,QString&gt; ArgumentMap;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        MUTILS_API <span class="keyword">const</span> QStringList crack_command_line(<span class="keyword">const</span> QString &amp;command_line = QString());</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        MUTILS_API <span class="keyword">const</span> ArgumentMap &amp;arguments(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <span class="comment">//Copy file</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keyword">typedef</span> bool (*progress_callback_t)(<span class="keyword">const</span> <span class="keywordtype">double</span> &amp;progress, <span class="keywordtype">void</span> *<span class="keyword">const</span> userData);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> copy_file(<span class="keyword">const</span> QString &amp;sourcePath, <span class="keyword">const</span> QString &amp;outputPath, <span class="keyword">const</span> <span class="keywordtype">bool</span> &amp;overwrite = <span class="keyword">true</span>, <span class="keyword">const</span> progress_callback_t callback = NULL, <span class="keywordtype">void</span> *<span class="keyword">const</span> userData = NULL);</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="comment">//Get file version</span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> get_file_version(<span class="keyword">const</span> QString fileName, quint16 *<span class="keyword">const</span> major = NULL, quint16 *<span class="keyword">const</span> minor = NULL, quint16 *<span class="keyword">const</span> patch = NULL, quint16 *<span class="keyword">const</span> build = NULL);</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="comment">//Get the OS version</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        MUTILS_API <span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">Version::os_version_t</a> &amp;os_version(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        MUTILS_API <span class="keyword">const</span> <span class="keywordtype">char</span> *os_friendly_name(<span class="keyword">const</span> <a class="code" href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">MUtils::OS::Version::os_version_t</a> &amp;os_version);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        MUTILS_API <span class="keyword">const</span> <span class="keywordtype">bool</span> &amp;running_on_wine(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <span class="comment">//Get known Folder</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        MUTILS_API <span class="keyword">const</span> QString &amp;known_folder(<a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54">known_folder_t</a> folder_id);</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="comment">//Current Date &amp; Time</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        MUTILS_API QDate current_date(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        MUTILS_API quint64 current_file_time(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="comment">//Check for process elevation</span></div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> is_elevated(<span class="keywordtype">bool</span> *bIsUacEnabled = NULL);</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> user_is_admin(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        MUTILS_API <span class="keywordtype">int</span> <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a09e0506f5a5eae04f01d1d1d095375c0">network_status</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="comment">//Message handler</span></div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> handle_os_message(<span class="keyword">const</span> <span class="keywordtype">void</span> *<span class="keyword">const</span> message, <span class="keywordtype">long</span> *result);</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        MUTILS_API <span class="keywordtype">void</span> <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a5496e72e4bbe987ce8154438c8bbe20a">sleep_ms</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> &amp;duration);</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <span class="comment">//Is executable/library file?</span></div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> is_executable_file(<span class="keyword">const</span> QString &amp;path);</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> is_library_file(<span class="keyword">const</span> QString &amp;path);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="comment">//Shutdown &amp; Hibernation</span></div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> is_hibernation_supported(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> shutdown_computer(<span class="keyword">const</span> QString &amp;message, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> timeout, <span class="keyword">const</span> <span class="keywordtype">bool</span> forceShutdown, <span class="keyword">const</span> <span class="keywordtype">bool</span> hibernate);</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <span class="comment">//Free diskspace</span></div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> free_diskspace(<span class="keyword">const</span> QString &amp;path, quint64 &amp;freeSpace);</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        MUTILS_API <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480c">drive_type_t</a> <a class="code" href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a47b63d88b79bc692c53a9f2fd82ca11b">get_drive_type</a>(<span class="keyword">const</span> QString &amp;path, <span class="keywordtype">bool</span> *fast_seeking = NULL);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <span class="comment">//Shell open</span></div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> shell_open(<span class="keyword">const</span> QWidget *parent, <span class="keyword">const</span> QString &amp;url, <span class="keyword">const</span> <span class="keywordtype">bool</span> explore = <span class="keyword">false</span>);</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> shell_open(<span class="keyword">const</span> QWidget *parent, <span class="keyword">const</span> QString &amp;url, <span class="keyword">const</span> QString &amp;parameters, <span class="keyword">const</span> QString &amp;directory, <span class="keyword">const</span> <span class="keywordtype">bool</span> explore = <span class="keyword">false</span>);</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        <span class="comment">//Open media file</span></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> open_media_file(<span class="keyword">const</span> QString &amp;mediaFilePath);</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        <span class="comment">//Process priority</span></div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> change_process_priority(<span class="keyword">const</span> <span class="keywordtype">int</span> priority);</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> change_process_priority(<span class="keyword">const</span> QProcess *proc, <span class="keyword">const</span> <span class="keywordtype">int</span> priority);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        <span class="comment">//Process ID</span></div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        MUTILS_API quint32 process_id(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        MUTILS_API quint32 process_id(<span class="keyword">const</span> QProcess *<span class="keyword">const</span> proc);</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        <span class="comment">//Thread ID</span></div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        MUTILS_API quint32 thread_id(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        MUTILS_API quint32 thread_id(<span class="keyword">const</span> QProcess *<span class="keyword">const</span> proc);</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        <span class="comment">//Suspend or resume processv</span></div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> suspend_process(<span class="keyword">const</span> QProcess *proc, <span class="keyword">const</span> <span class="keywordtype">bool</span> suspend);</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        <span class="comment">//System timer resolution</span></div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> setup_timer_resolution(<span class="keyword">const</span> quint32 &amp;interval = 1);</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> reset_timer_resolution(<span class="keyword">const</span> quint32 &amp;interval = 1);</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;        <span class="comment">//Set file time</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> set_file_time(<span class="keyword">const</span> QFile &amp;file,   <span class="keyword">const</span> QDateTime &amp;created = QDateTime(), <span class="keyword">const</span> QDateTime &amp;modified = QDateTime(), <span class="keyword">const</span> QDateTime &amp;accessed = QDateTime());</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> set_file_time(<span class="keyword">const</span> QString &amp;path, <span class="keyword">const</span> QDateTime &amp;created = QDateTime(), <span class="keyword">const</span> QDateTime &amp;modified = QDateTime(), <span class="keyword">const</span> QDateTime &amp;accessed = QDateTime());</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="comment">//Keyboard support</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> check_key_state_esc(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <span class="comment">//Shell notification</span></div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        MUTILS_API <span class="keywordtype">void</span> shell_change_notification(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="comment">//Get file path from descriptor</span></div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        MUTILS_API QString get_file_path(<span class="keyword">const</span> <span class="keywordtype">int</span> &amp;fd);</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        <span class="comment">//WOW64 redirection</span></div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> wow64fsredir_disable(<span class="keywordtype">void</span> *oldValue);</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> wow64fsredir_revert (<span class="keywordtype">void</span> *oldValue);</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="comment">//Environment variables</span></div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        MUTILS_API QString get_envvar(<span class="keyword">const</span> QString &amp;name);</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;        MUTILS_API <span class="keywordtype">bool</span> set_envvar(<span class="keyword">const</span> QString &amp;name, <span class="keyword">const</span> QString &amp;value);</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        <span class="comment">//Check if debugger is present</span></div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        MUTILS_API <span class="keywordtype">void</span> check_debugger(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        <span class="comment">//Error handling</span></div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        MUTILS_API <span class="keywordtype">void</span> fatal_exit(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* <span class="keyword">const</span> errorMessage);</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    }</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;}</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div><div class="ttc" id="namespace_m_utils_1_1_o_s_html_a09e0506f5a5eae04f01d1d1d095375c0"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a09e0506f5a5eae04f01d1d1d095375c0">MUtils::OS::network_status</a></div><div class="ttdeci">MUTILS_API int network_status(void)</div><div class="ttdoc">Check the network status. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a0bf24022df29669da329e21d9b3d07d7"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0bf24022df29669da329e21d9b3d07d7">MUtils::OS::Version::UNKNOWN_OPSYS</a></div><div class="ttdeci">MUTILS_API const os_version_t UNKNOWN_OPSYS</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a62a1b72ba9a7accee438d19212785e54a0fb64b1e975f9ff0cc97df6e3b7f8110"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54a0fb64b1e975f9ff0cc97df6e3b7f8110">MUtils::OS::FOLDER_LOCALAPPDATA</a></div><div class="ttdoc">Local application data (non-roaming) </div><div class="ttdef"><b>Definition:</b> OSSupport.h:107</div></div>
<div class="ttc" id="struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t_html_aee8b73ff717ddaee12b4ce3577d83de6"><div class="ttname"><a href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#aee8b73ff717ddaee12b4ce3577d83de6">MUtils::OS::Version::_os_version_t::versionMinor</a></div><div class="ttdeci">unsigned int versionMinor</div><div class="ttdoc">The minor version of the underlaying operating system. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:75</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a62a1b72ba9a7accee438d19212785e54abb6f5bd0b6564b2f093f5a2d1c055183"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54abb6f5bd0b6564b2f093f5a2d1c055183">MUtils::OS::FOLDER_PROGRAMFILES</a></div><div class="ttdoc">Program files. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:108</div></div>
<div class="ttc" id="struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t_html_a7ac907333a00d6b4722c29c466adcc4c"><div class="ttname"><a href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a7ac907333a00d6b4722c29c466adcc4c">MUtils::OS::Version::_os_version_t::versionBuild</a></div><div class="ttdeci">unsigned int versionBuild</div><div class="ttdoc">The build number of the underlaying operating system. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:76</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a62a1b72ba9a7accee438d19212785e54af32b4c27ec428ad2bf69d8c8802de21c"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54af32b4c27ec428ad2bf69d8c8802de21c">MUtils::OS::FOLDER_SYSTROOT_DIR</a></div><div class="ttdoc">System &quot;root&quot; directory. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:110</div></div>
<div class="ttc" id="class_m_utils_1_1_version_html"><div class="ttname"><a href="../../d1/d32/class_m_utils_1_1_version.html">MUtils::Version</a></div><div class="ttdef"><b>Definition:</b> Version.h:34</div></div>
<div class="ttc" id="_global_8h_html"><div class="ttname"><a href="../../d5/d3b/_global_8h.html">Global.h</a></div><div class="ttdoc">This file contains miscellaneous functions that are generally useful for Qt-based applications...</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a5496e72e4bbe987ce8154438c8bbe20a"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a5496e72e4bbe987ce8154438c8bbe20a">MUtils::OS::sleep_ms</a></div><div class="ttdeci">MUTILS_API void sleep_ms(const size_t &amp;duration)</div><div class="ttdoc">Suspend calling thread. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a199c9376f9941b2ec9721eab0b544da0"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a199c9376f9941b2ec9721eab0b544da0">MUtils::OS::Version::os_version_t</a></div><div class="ttdeci">struct MUtils::OS::Version::_os_version_t os_version_t</div><div class="ttdoc">This struct contains version information about the underlaying operating system. See _os_version_t fo...</div></div>
<div class="ttc" id="struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t_html_a50fb34ca1e0ae5ba7df5e40f93b95179"><div class="ttname"><a href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a50fb34ca1e0ae5ba7df5e40f93b95179">MUtils::OS::Version::_os_version_t::versionMajor</a></div><div class="ttdeci">unsigned int versionMajor</div><div class="ttdoc">The major version of the underlaying operating system. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:74</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_af8d3f37b0e9c3b73dfcf7d1f237d480c"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480c">MUtils::OS::drive_type_t</a></div><div class="ttdeci">drive_type_t</div><div class="ttdoc">This enumeration specifies drive types. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:128</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a297a875094ba596314af1105900e3e9a"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a297a875094ba596314af1105900e3e9a">MUtils::OS::Version::WINDOWS_WIN70</a></div><div class="ttdeci">MUTILS_API const os_version_t WINDOWS_WIN70</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_ad9c54834ffac2a4a7143ecf4d26232f7"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#ad9c54834ffac2a4a7143ecf4d26232f7">MUtils::OS::Version::WINDOWS_WIN80</a></div><div class="ttdeci">MUTILS_API const os_version_t WINDOWS_WIN80</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a9d3c6f9379b28bab18428ce9ff869ce4"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a9d3c6f9379b28bab18428ce9ff869ce4">MUtils::OS::Version::WINDOWS_WIN2K</a></div><div class="ttdeci">MUTILS_API const os_version_t WINDOWS_WIN2K</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_af8d3f37b0e9c3b73dfcf7d1f237d480ca14a1e51fa7603f7970ce94fdaf658f45"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca14a1e51fa7603f7970ce94fdaf658f45">MUtils::OS::DRIVE_TYPE_HDD</a></div><div class="ttdoc">Hard Disk drive or Solid-State Drive. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:132</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_af8d3f37b0e9c3b73dfcf7d1f237d480cab4fa63f34e252cce2176d51b36f0c827"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480cab4fa63f34e252cce2176d51b36f0c827">MUtils::OS::DRIVE_TYPE_OPT</a></div><div class="ttdoc">Optical disk srive, e.g. CD or DVD. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:134</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a0571c442a535da3a8541642f8cead00ea6fa12cbf650f5b33e76bbffd4fb5ec84"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00ea6fa12cbf650f5b33e76bbffd4fb5ec84">MUtils::OS::Version::OS_UNKNOWN</a></div><div class="ttdoc">Unknown operating system. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:63</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a2846cdee70f5aab693f7fe7ccb47d044"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a2846cdee70f5aab693f7fe7ccb47d044">MUtils::OS::Version::WINDOWS_WN100</a></div><div class="ttdeci">MUTILS_API const os_version_t WINDOWS_WN100</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a0571c442a535da3a8541642f8cead00e"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00e">MUtils::OS::Version::os_type_t</a></div><div class="ttdeci">os_type_t</div><div class="ttdoc">This enumeration specifies the type of the underlaying operating system. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:61</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a72189512f10d40462bd055dc865771e6"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a72189512f10d40462bd055dc865771e6">MUtils::OS::Version::WINDOWS_WIN81</a></div><div class="ttdeci">MUTILS_API const os_version_t WINDOWS_WIN81</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t_html"><div class="ttname"><a href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html">MUtils::OS::Version::_os_version_t</a></div><div class="ttdoc">This struct contains version information about the underlaying operating system. See _os_version_t fo...</div><div class="ttdef"><b>Definition:</b> OSSupport.h:71</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_af8d3f37b0e9c3b73dfcf7d1f237d480caf4b8f61bae5c8602e2f1e68ef88f06a2"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480caf4b8f61bae5c8602e2f1e68ef88f06a2">MUtils::OS::DRIVE_TYPE_NET</a></div><div class="ttdoc">Remote/Network drive. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:133</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a6547f22f54d3578977b428ed41e51a01"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a6547f22f54d3578977b428ed41e51a01">MUtils::OS::Version::WINDOWS_VISTA</a></div><div class="ttdeci">MUTILS_API const os_version_t WINDOWS_VISTA</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="namespace_m_utils_html"><div class="ttname"><a href="../../d3/da6/namespace_m_utils.html">MUtils</a></div><div class="ttdoc">Global MUtils namespace. </div><div class="ttdef"><b>Definition:</b> CPUFeatures.h:37</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a0005b2a3f0289c1078c9cc8ba5ccba45ab81e893484ac0d201a9f54e2af0563dc"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45ab81e893484ac0d201a9f54e2af0563dc">MUtils::OS::NETWORK_TYPE_NON</a></div><div class="ttdoc">Computer is not connected to a network. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:120</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_af8d3f37b0e9c3b73dfcf7d1f237d480ca56b9d51a60c9df7d4ec47e917218b153"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca56b9d51a60c9df7d4ec47e917218b153">MUtils::OS::DRIVE_TYPE_ERR</a></div><div class="ttdoc">The drive type cannot be determined. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:130</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a0469feecbf8adb7d7358c76c71ac0280"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0469feecbf8adb7d7358c76c71ac0280">MUtils::OS::Version::WINDOWS_WINXP</a></div><div class="ttdeci">MUTILS_API const os_version_t WINDOWS_WINXP</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_af8d3f37b0e9c3b73dfcf7d1f237d480ca244c1b3fa78d134bf18cc39fb0cc0877"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca244c1b3fa78d134bf18cc39fb0cc0877">MUtils::OS::DRIVE_TYPE_FDD</a></div><div class="ttdoc">Floppy Drive, or Flash Card reader. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:131</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_af8d3f37b0e9c3b73dfcf7d1f237d480ca42b280153a22e6af73fe7edfbbaee69b"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#af8d3f37b0e9c3b73dfcf7d1f237d480ca42b280153a22e6af73fe7edfbbaee69b">MUtils::OS::DRIVE_TYPE_RAM</a></div><div class="ttdoc">RAM disk. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:135</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a47b63d88b79bc692c53a9f2fd82ca11b"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a47b63d88b79bc692c53a9f2fd82ca11b">MUtils::OS::get_drive_type</a></div><div class="ttdeci">MUTILS_API drive_type_t get_drive_type(const QString &amp;path, bool *fast_seeking=NULL)</div><div class="ttdoc">Detect drive type. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a0005b2a3f0289c1078c9cc8ba5ccba45"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45">MUtils::OS::network_type_t</a></div><div class="ttdeci">network_type_t</div><div class="ttdoc">This enumeration specifies network connection types. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:117</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a0005b2a3f0289c1078c9cc8ba5ccba45a9ed5ecd6b286fa5ec2e23e652dac8769"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45a9ed5ecd6b286fa5ec2e23e652dac8769">MUtils::OS::NETWORK_TYPE_YES</a></div><div class="ttdoc">Computer is connected to a network. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:121</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a62a1b72ba9a7accee438d19212785e54a7c25655022efd34417acfaa11f8491b3"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54a7c25655022efd34417acfaa11f8491b3">MUtils::OS::FOLDER_SYSTEMFOLDER</a></div><div class="ttdoc">System directory. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:109</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a0571c442a535da3a8541642f8cead00eae668bf9aca53081658d391823e37acf7"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a0571c442a535da3a8541642f8cead00eae668bf9aca53081658d391823e37acf7">MUtils::OS::Version::OS_WINDOWS</a></div><div class="ttdoc">Microsoft(R) Windows. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:64</div></div>
<div class="ttc" id="struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t_html_a4c4b496ec1964c26ebf8c138bace655a"><div class="ttname"><a href="../../dc/d55/struct_m_utils_1_1_o_s_1_1_version_1_1__os__version__t.html#a4c4b496ec1964c26ebf8c138bace655a">MUtils::OS::Version::_os_version_t::type</a></div><div class="ttdeci">unsigned int type</div><div class="ttdoc">The type of the underlaying operating system, as os_type_t </div><div class="ttdef"><b>Definition:</b> OSSupport.h:73</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a62a1b72ba9a7accee438d19212785e54"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a62a1b72ba9a7accee438d19212785e54">MUtils::OS::known_folder_t</a></div><div class="ttdeci">known_folder_t</div><div class="ttdoc">This enumeration specifies &quot;known&quot; folder identifiers. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:105</div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_1_1_version_html_a7b97ac27f03a05b0121dd617a69ae393"><div class="ttname"><a href="../../d1/d7d/namespace_m_utils_1_1_o_s_1_1_version.html#a7b97ac27f03a05b0121dd617a69ae393">MUtils::OS::Version::WINDOWS_XPX64</a></div><div class="ttdeci">MUTILS_API const os_version_t WINDOWS_XPX64</div><div class="ttdoc">Operating system version constant. </div></div>
<div class="ttc" id="namespace_m_utils_1_1_o_s_html_a0005b2a3f0289c1078c9cc8ba5ccba45af3ce4c3003fa7cc9e3b774669b8ab6e9"><div class="ttname"><a href="../../d2/df4/namespace_m_utils_1_1_o_s.html#a0005b2a3f0289c1078c9cc8ba5ccba45af3ce4c3003fa7cc9e3b774669b8ab6e9">MUtils::OS::NETWORK_TYPE_ERR</a></div><div class="ttdoc">Network connection is unknown. </div><div class="ttdef"><b>Definition:</b> OSSupport.h:119</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
